#include<stdio.h>
/* checking the value of getchar()!=EOF */
int main()
{
  printf("%d",getchar()!=EOF);
  return 0;
}
